//---------------------------------------------------------------------------
#ifndef unit1H
#define unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "OverbyteIcsWSocket.hpp"
#include <ExtCtrls.hpp>
#include "OverbyteIcsWndControl.hpp"
#include <ComCtrls.hpp>
#include "iComponent.hpp"
#include "iCustomComponent.hpp"
#include "iSwitchLed.hpp"
#include "iSwitchToggle.hpp"
#include "iVCLComponent.hpp"
#include "iSwitchPanel.hpp"
#include "iLed.hpp"
#include "iLedRound.hpp"
#include "iAngularLogGauge.hpp"
#include "iGaugeComponent.hpp"
#include "iPositionComponent.hpp"
#include "iScaleComponent.hpp"
#include "iSwitchRocker.hpp"
#include "iSwitchRocker3Way.hpp"
#include "iPanel.hpp"
#include "iAngularGauge.hpp"
#include "iEdit.hpp"
#include "iEditCustom.hpp"
#include "iLabel.hpp"
#include "iTimers.hpp"
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
    	TPanel *Panel1;
    	TLabel *Label1;
    	TEdit *HostNameEdit;
    	TMemo *DisplayMemo;
	TPanel *Panel10;
    	TSplitter *Splitter1;
	TPageControl *PageControl1;
	TTabSheet *TabSheet1;
	TTabSheet *TabSheet2;
	TMemo *Memo1;
	TiLedRound *iLedRound1;
	TiSwitchRocker *iSwitchRocker1;
	TiPanel *iPanel1;
	TiAngularGauge *iAngularGauge1;
	TiPanel *iPanel2;
	TiPanel *iPanel3;
	TiPanel *iPanel4;
	TiEdit *iEdit1;
	TiEdit *iEdit2;
	TiLabel *iLabel1;
	TiLabel *iLabel2;
	TButton *Button1;
	TiTimers *iTimers1;
	TWSocket *WSocket1;
	TiSwitchRocker3Way *iSwitchRocker3Way1;
	TiSwitchRocker3Way *iSwitchRocker3Way2;
	TWSocket *WSocket2;
	void __fastcall iSwitchRocker1Change(TObject *Sender);
	void __fastcall iEdit1KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall iTimers1Timer1(TObject *Sender);
	void __fastcall iTimers1Timer2(TObject *Sender);
	void __fastcall WSocket1DataAvailable(TObject *Sender, WORD ErrCode);
	void __fastcall iSwitchRocker3Way1Click(TObject *Sender);
	void __fastcall iSwitchRocker3Way2Click(TObject *Sender);
	void __fastcall WSocket2DataAvailable(TObject *Sender, WORD ErrCode);

private:	// User declarations
	AnsiString FIniFileName;
	BOOL       FInitialized;
	void 		Display(AnsiString Msg);
	void 		Send(int No, char *buf, int size);
	void  		Connect(void);
	void    	Disconnect(void);
	void    	SendSN(void);

    
public:		// User declarations
    __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
